/* pages/inspection/profile/profile.wxss */
page {
    height: 100vh;
    background: linear-gradient(179.96deg, #FFFFFF 7.67%, #FFECEB 58.76%);
  }
  .index-page {
    position: relative;
    width: 100%;
    min-height: 100vh; /* 确保最小高度为整个视口高度 */
    background: linear-gradient(179.96deg, #FFFFFF 7.67%, #FFECEB 58.76%);
    display: flex;
    flex-direction: column;
  }

  .navigation-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 94%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #FFFFFF; /* 改为白色背景 */
    z-index: 1000;
    box-sizing: border-box;
    .iconfont {
        font-size: 24px;
      }
      .logo{
        width: 245rpx;
        height: 70rpx;
      }
    }

/* 导航栏行样式 */
.nav-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-row-top {
    margin-bottom: 10px; /* 两行之间的间距 */
}

.nav-row-bottom {
    justify-content: center; /* 发布按钮居中 */
}

/* 导航栏左侧按钮组 */
.nav-left {
    display: flex;
    align-items: center;
    gap: 8px; /* 按钮之间的间距 */
    flex: 1; /* 占据左侧空间 */
}

/* 导航栏中间区域 */
.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* 占据中间空间 */
}

/* 导航栏右侧区域 */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1; /* 占据右侧空间 */
}

/* 发布按钮容器 */
.publish-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 新增搜索框样式 */
.search-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30rpx 0;
    width: 94%;
    margin: auto;
  }

.icon-a-huaban1fuben44 {
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.icon-a-huaban1fuben44:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.publish-button {
    /* 文字样式 */
    color: rgba(120, 120, 120, 1); /* 灰色文字 */
    font-family: Noto Sans SC;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    white-space: nowrap;
    /* 按钮边框 */
    border: 0.75px solid #B9B9B9;
    background-color: #FFFFFF;
    max-width: 57.75px; /* 固定宽度 */
    height: 72rpx;
    border-radius: 16.5px; /* 圆角 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 282px !important;
  }

.user-info-section {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    // background-color: #fff;
    margin-bottom: 10px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
    border: 1.49px solid #ACACAC;
    background-color: transparent; /* 确保背景透明 */
    position: relative; /* 添加相对定位 */
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover; /* 确保头像填充整个容器 */
    display: block; /* 确保图片正确显示 */
    background-color: transparent; /* 确保图片背景透明 */
}

/* 默认头像样式 */
.default-avatar {
    background-color: #f5f5f5; /* 默认背景色 */
}

/* 确保头像容器在加载过程中可见 */
.user-avatar:not(.default-avatar) {
    background-color: transparent;
}

.user-details {
    flex: 1;
    width: 76;
    height: 24;
    top: 145px;
    left: 111px;
    opacity: 1;
}

.username {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color:#3060FC
}

.stats {
    display: flex;
}

.stat-item {
    margin-right: 20px;
}

.stat-number {
    font-size: 16px;
    font-weight: bold;
    margin-right: 5px;
}

.stat-label {
    font-size: 14px;
    color: #999;
}

.tabs {
    display: flex;
    // background-color: #fff;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    position: relative;
}

.tab text {
    font-size: 16px;
}

.tab.active text {
    color: #000000;
    font-weight: bold;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 66px;
    height: 3px;
    background-color: #3060FC;
}

.content-section {
    padding: 0;
    min-height: calc(100vh - 500px); /* 确保内容区域有最小高度 */
}

.empty-tip {
    text-align: center;
    padding: 50px 0;
    color: #999;
    font-size: 14px;
    min-height: calc(100vh - 400px); /* 确保空内容区域也有足够的高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 复用瀑布流样式 */
.waterfall-container {
    overflow: visible; /* 新增 */
    display: flex;
    padding: 16px;
    gap: 8px; /* 列间距 */
}

/* 内容列 */
.waterfall-column {
    overflow: visible; /* 新增 */
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* 卡片间距 */
}

/* 内容卡片 */
.content-card {
    position: relative;
    overflow: visible !important; /* 强制覆盖所有可能的裁剪 */
    margin-top: 0;
    transition: margin-top 0.3s ease;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 0; /* 防止内容溢出 */
}
/* 编辑模式下的卡片样式 */
.content-card.editing-mode {
    margin-top: 12px; /* 根据图标外露部分调整这个值 */
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

.card-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1; /* 占满剩余空间 */
    min-height: 0; /* 防止内容溢出 */
}

.card-title {
    font-size: 14px;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 8px;
    word-break: break-word;
}

/* 编辑模式下选择框样式 */
.checkbox-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* 删除按钮样式 */
.edit-actions {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

.delete-button {
    background: #ff4d4f;
    color: white;
    border-radius: 20px;
    width: 200px;
}

.card-footer {
    display: flex;
    align-items: center;
    margin-top: auto; /* 使footer始终在底部 */
}

.avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0; /* 防止头像被压缩 */
}

.username {
    flex: 1;
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* 允许文本截断 */
}

.likes, .comments {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #999;
    flex-shrink: 0; /* 防止点赞区域被压缩 */
    margin-left: 4px;
}

.likes .iconfont, .comments .iconfont {
    font-size: 14px;
    margin-right: 2px;
    color: #787878;
}

/* 卡片标签样式 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6rpx;
    margin-top: 8rpx;
}

.card-tag {
    display: inline-block;
    padding: 4rpx 8rpx;
    background: #f0f0f0;
    color: #666;
    font-size: 20rpx;
    border-radius: 8rpx;
    line-height: 1.2;
}

.card-tag-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52rpx;
    height: 32rpx;
    background: #f0f0f0;
    color: #666;
    font-size: 20rpx;
    border-radius: 8rpx;
    margin-left: 8rpx;
    cursor: pointer;
}

.card-tag-add:active {
    background: #f0f0f0;
    transform: scale(0.9);
}

/* 收藏内容工具栏样式 */
.collection-tools {
    padding: 10px 15px;
    // background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

.tools-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* 删除标签工具栏相关样式 */

.search-trigger {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-trigger .iconfont {
    font-size: 18px;
    color: #666;
}

.collection-search {
    position: relative;
    margin-top: 10px;
}

.search-input {
    width: 100%;
    height: 36px;
    // background: #f5f5f5;
    border-radius: 18px;
    border: 1px solid #787878;
    padding: 0 40px 0 15px;
    font-size: 14px;
    box-sizing: border-box;
}

.clear-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 12px;
}

/* 发布内容工具栏样式 */
.posts-tools {
    padding: 10px 15px 5px 15px;
    // background: #fff;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: -10px;
}

.edit-trigger {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #0A4CE6;
    padding: 5px 10px;
    border-radius: 15px;
    // background: #f5f5f5;
}

.edit-trigger .iconfont {
    font-size: 14px;
    margin-right: 5px;
}

.posts-search {
    position: relative;
    margin-top: 10px;
}

.checkbox-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.edit-actions {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

/* 删除图标样式 */
.delete-icon-wrapper {
    position: absolute;
    top: -10px; /* 向上移动一半高度，使图标一半在外 */
    right: -10px; /* 向右移动一半宽度，使图标一半在外 */
    width: 27px;
    height: 27px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.delete-icon-wrapper:active {
    transform: scale(0.9);
}

.delete-icon-wrapper .iconfont {
    color: #ff4d4f;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
}

/* 收藏提示框样式 */
.toast-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* 收藏操作期间的样式 */
.likes.collecting {
    opacity: 0.5;
    pointer-events: none;
}

.likes.collecting .iconfont {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.toast-content {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20rpx 40rpx;
    border-radius: 20rpx;
    display: flex;
    align-items: center;
    gap: 20rpx;
}

.toast-text {
    font-size: 28rpx;
    color: white;
}

.toast-icon {
    font-size: 32rpx;
    color: #FFD700;
}

/* 个人中心侧边栏样式 */
.pcenter-sider {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* 加载更多按钮样式 */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.load-more-button {
    background: transparent;
    // color: white;
    border: none;
    // border-radius: 20px;
    // padding: 10px 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-button:active {
    background: #0839b8;
}

/* 主要内容区域 */
.main-content {
    position: relative;
    width: 100%;
    margin-top: 180rpx; /* 为白色固定的navigation-bar留出更多空间，确保视觉分离 */
    flex: 1; /* 填充剩余空间 */
    min-height: calc(100vh - 180rpx); /* 确保最小高度填充剩余屏幕空间 */
}

/* ========== 标签管理样式 ========== */

/* 标签管理区域 */
.tag-manager-section {
    margin: 20rpx 30rpx;
    background: transparent;
    border-radius: 12rpx;
    padding: 24rpx;
    // box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 32rpx;
    justify-content: space-between;
}

.tag-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border: 1px solid #0A4CE9;
    border-radius: 24rpx;
    background: #EAEEFC;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-add-btn:active {
    background: #0A4CE9;
    transform: scale(0.95);
}

.plus-icon {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 28rpx;
    line-height: 1;
    color: #0A4CE9;
    user-select: none;
}

.tag-add-btn:active .plus-icon {
    color: white;
}

/* 标签管理按钮 */
.tag-manage-btn {
    flex: 0 0 calc(30% - 9rpx);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12rpx;
    border: 1px solid #0A4CE9;
    border-radius: 16rpx;
    background: #EAEEFC;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24rpx;
    color: #0A4CE9;
    font-weight: 500;
    gap: 8rpx;
    min-width: 120rpx;
    margin-left: -20rpx;
}

.tag-manage-btn:active {
    background: #0A4CE9;
    color: white;
    transform: scale(0.95);
}

.tag-manage-btn .btn-text {
    font-size: 24rpx;
    font-weight: 500;
}

.tag-manage-btn .iconfont {
    font-size: 20rpx;
    transition: transform 0.3s ease;
}

/* 展开状态时图标旋转 */
.tag-manage-btn .iconfont.expanded {
    transform: rotate(180deg);
}

/* 清空已选标签按钮 */
.tag-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16rpx;
    border: 1px solid #ff4d4f;
    border-radius: 16rpx;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-clear-btn:active {
    background: #ff4d4f;
    transform: scale(0.95);
}

.clear-text {
    font-size: 22rpx;
    color: #ff4d4f;
    font-weight: 500;
}

.tag-clear-btn:active .clear-text {
    color: white;
}

/* 现有标签列表 */
.available-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 12rpx;
    flex: 1;
    justify-content: space-between;
}

.tag-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12rpx;
    background: transparent;
    border: 1px solid #787878;
    border-radius: 16rpx;
    font-size: 24rpx;
    color: #787878;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
    min-width: 60rpx;
}

/* 选中状态的标签 */
.tag-item.selected {
    border: 1px solid #0A4CE9 !important;
    background: #0A4CE9 !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2rpx 8rpx rgba(10, 76, 233, 0.3);
    transform: scale(1.05);
}

.tag-item:active {
    transform: scale(0.95);
}

.tag-name {
    margin-right: 8rpx;
    font-size: 22rpx;
}

.tag-delete {
    font-size: 20rpx;
    opacity: 0.7;
    padding: 4rpx;
    border-radius: 50%;
    transition: all 0.2s;
}

.tag-delete:active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* 标签操作按钮组 */
.tag-actions {
    display: flex;
    align-items: center;
    gap: 8rpx;
}

.tag-rename {
    font-size: 20rpx;
    color: #0A4CE9;
    padding: 4rpx;
    border-radius: 50%;
    transition: all 0.2s;
}

.tag-rename:active {
    background: rgba(10, 76, 233, 0.1);
}


/* 标签管理弹窗 */
.tag-manager-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tag-modal-content {
    background: #fff;
    border-radius: 16rpx;
    width: 600rpx;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tag-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32rpx 32rpx 24rpx;
    border-bottom: 1rpx solid #f0f0f0;
}

.modal-title {
    font-size: 36rpx;
    font-weight: 600;
    color: #333;
}

.tag-modal-header .iconfont {
    font-size: 32rpx;
    color: #999;
    padding: 8rpx;
    border-radius: 50%;
    transition: all 0.2s;
}

.tag-modal-header .iconfont:active {
    background: #f5f5f5;
}

/* 弹窗中的标签列表 */
.modal-tag-list {
    max-height: 400rpx;
    overflow-y: auto;
    padding: 0 32rpx;
}

.modal-tag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24rpx 0;
    border-bottom: 1rpx solid #f5f5f5;
}

.modal-tag-item:last-child {
    border-bottom: none;
}

.modal-tag-name {
    font-size: 28rpx;
    color: #333;
    flex: 1;
}

.modal-tag-delete {
    font-size: 24rpx;
    color: #ff4d4f;
    padding: 8rpx;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-tag-delete:active {
    background: #ff4d4f;
    color: white;
}

/* 创建新标签区域 */
.create-tag-section {
    padding: 24rpx 32rpx 32rpx;
    border-top: 1rpx solid #f0f0f0;
    background: #fafafa;
}

.create-tag-input {
    display: flex;
    gap: 16rpx;
    align-items: center;
}

.tag-input {
    flex: 1;
    height: 72rpx;
    padding: 0 24rpx;
    border: 1rpx solid #ddd;
    border-radius: 36rpx;
    font-size: 28rpx;
    background: #fff;
    box-sizing: border-box;
}

.tag-input:focus {
    border-color: #0A4CE9;
}

.create-btn {
    height: 72rpx;
    padding: 0 32rpx;
    background: #0A4CE9;
    color: white;
    border: none;
    border-radius: 36rpx;
    font-size: 28rpx;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.create-btn:active {
    background: #0839b8;
    transform: scale(0.95);
}

.create-btn[disabled] {
    background: #ccc;
    color: #999;
}

.create-btn[disabled]:active {
    transform: none;
}

/* ========== 重命名标签弹窗样式 ========== */

.rename-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.rename-modal-content {
    background: #fff;
    border-radius: 16rpx;
    width: 600rpx;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rename-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32rpx 32rpx 24rpx;
    border-bottom: 1rpx solid #f0f0f0;
}

.rename-modal-header .modal-title {
    font-size: 36rpx;
    font-weight: 600;
    color: #333;
}

.rename-modal-header .iconfont {
    font-size: 32rpx;
    color: #999;
    padding: 8rpx;
    border-radius: 50%;
    transition: all 0.2s;
}

.rename-modal-header .iconfont:active {
    background: #f5f5f5;
}

.rename-form {
    padding: 32rpx;
}

.form-item {
    display: flex;
    align-items: center;
    margin-bottom: 24rpx;
}

.form-item:last-child {
    margin-bottom: 0;
}

.form-label {
    font-size: 28rpx;
    color: #333;
    width: 120rpx;
    flex-shrink: 0;
}

.form-value {
    font-size: 28rpx;
    color: #666;
    flex: 1;
    padding: 8rpx 0;
}

.rename-input {
    flex: 1;
    height: 72rpx;
    padding: 0 24rpx;
    border: 1rpx solid #ddd;
    border-radius: 36rpx;
    font-size: 28rpx;
    background: #fff;
    box-sizing: border-box;
}

.rename-input:focus {
    border-color: #0A4CE9;
}

.rename-actions {
    display: flex;
    gap: 16rpx;
    padding: 24rpx 32rpx 32rpx;
    border-top: 1rpx solid #f0f0f0;
}

.cancel-btn, .confirm-btn {
    flex: 1;
    height: 72rpx;
    border-radius: 36rpx;
    font-size: 28rpx;
    border: none;
    transition: all 0.2s;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.cancel-btn:active {
    background: #e8e8e8;
    transform: scale(0.95);
}

.confirm-btn {
    background: #0A4CE9;
    color: white;
}

.confirm-btn:active {
    background: #0839b8;
    transform: scale(0.95);
}

/* ========== Action Sheet样式 ========== */
.tag-action-sheet-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
}

.tag-action-sheet {
    width: 100%;
    background: #fff;
    border-radius: 20rpx 20rpx 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.action-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32rpx;
    border-bottom: 1rpx solid #f0f0f0;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24rpx;
    position: relative;
}

.settings-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.settings-dropdown {
    position: absolute;
    top: 60rpx;
    right: 0;
    z-index: 1001;
    min-width: 240rpx;
    display: flex;
    flex-direction: column;
    gap: 8rpx;
}

.dropdown-item {
    padding: 24rpx 32rpx;
    font-size: 28rpx;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border-radius: 8rpx;
}

.dropdown-item:active {
    transform: scale(0.98);
}

.delete-item {
    background: #FF6B6B;
    color: white;
}

.delete-item:active {
    background: #e55555;
}

.rename-item {
    background: #666;
    color: white;
}

.rename-item:active {
    background: #555;
}

.action-sheet-title {
    font-size: 36rpx;
    font-weight: 600;
    color: #333;
}

.action-sheet-content {
    flex: 1;
    padding: 32rpx;
    overflow-y: auto;
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16rpx;
    justify-content: space-between;
}

.tag-grid::after {
    content: '';
    flex: auto;
}

.grid-tag-item {
    flex: 0 0 calc((100% - 32rpx) / 3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16rpx 12rpx;
    border: 1rpx solid #ddd;
    border-radius: 24rpx;
    font-size: 28rpx;
    color: #666;
    background: #f5f5f5;
    transition: all 0.2s;
    text-align: center;
    word-break: break-all;
    box-sizing: border-box;
}

.grid-tag-item.selected {
    border: 1px solid #0A4CE9;
    background: #0A4CE9;
    color: white;
    font-weight: 600;
    box-shadow: 0 4rpx 12rpx rgba(10, 76, 233, 0.3);
    transform: scale(1.02);
}

.grid-tag-item.add-tag {
    border-color: #0A4CE9;
    color: #0A4CE9;
    display: flex;
    align-items: center;
    gap: 8rpx;
}

.action-sheet-footer {
    padding: 32rpx;
    border-top: 1rpx solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 16rpx;
}

.delete-tag-btn {
    width: 100%;
    height: 88rpx;
    background: #FF6B47;
    color: white;
    border: none;
    border-radius: 12rpx;
    font-size: 32rpx;
    font-weight: 600;
}

.rename-tag-btn {
    width: 100%;
    height: 88rpx;
    background: #666;
    color: white;
    border: none;
    border-radius: 12rpx;
    font-size: 32rpx;
    font-weight: 600;
}

.action-sheet-footer .confirm-btn {
    width: 100%;
    height: 88rpx;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 12rpx;
    font-size: 32rpx;
    font-weight: 600;
}